package com.geostar.constructionland.index.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.geostar.constructionland.index.entity.InxStorageAcotEntity;
import com.geostar.constructionland.index.entity.model.IndexStorageFreezeModel;
import com.geostar.constructionland.index.entity.model.InsertInxStogAcotModel;
import com.geostar.constructionland.index.entity.model.InxStogAcotModel;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface InxStorageAcotService {
    IPage<InxStorageAcotEntity> queryInxStogAcotList(InxStogAcotModel inxStogAcotModel);
    List<InxStorageAcotEntity> queryInxStorageAllList(InxStogAcotModel inxStogAcotModel);

    void addInxStogAcout(InxStorageAcotEntity inxStorageAcot);
    void delInxStogAcout(String id);
    InxStorageAcotEntity queryInxStorageAcot(String id);

    void addOrUpdateInxStogAcout(InsertInxStogAcotModel insertInxStogAcotModel);
    /**
     * @Modifying 以通知 SpringData， 这是一个 UPDATE 或 DELETE 操作
     * 这个注解未引用
     * @param idList
     */
//    @Modifying
    @Transactional
    void delInxStoragAcoutByIds( List<String> idList);

    @Transactional
    String updateInxStorage(IndexStorageFreezeModel indexStorageFreezeModal);
}
